package com.sky.mapper;


import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishMapper {


    @Select("select * from sky_take_out.setmeal_dish where setmeal_id=#{setmealId}")
    List<SetmealDish> list(Long setmealId);

    void insertBatch(List<SetmealDish> dishList);

    void deleteBySetmealIds(List<Long> ids);


    List<SetmealDish> getBySetmealId(Long setmealId,Integer status);
    default List<SetmealDish> getBySetmealId(Long setmealId){
        return getBySetmealId(setmealId,null);
    }
}
